<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>基金数据平台</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/layui/2.9.10/css/layui.css">
    <script src="https://cdn.staticfile.org/layui/2.9.10/layui.js"></script>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">基金数据平台</div>
        <ul class="layui-nav layui-layout-right">
            {% if current_user.is_authenticated %}
            <li class="layui-nav-item"><a href="/logout">退出</a></li>
            {% else %}
            <li class="layui-nav-item"><a href="/login">登录</a></li>
            {% endif %}
        </ul>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree" lay-shrink="all" lay-filter="side">
                <li class="layui-nav-item"><a href="/dashboard">首页</a></li>
                <li class="layui-nav-item"><a href="/etf">ETF基金</a></li>
                <li class="layui-nav-item"><a href="/lof">LOF基金</a></li>
                <li class="layui-nav-item"><a href="/money">货币基金</a></li>
                <li class="layui-nav-item"><a href="/analysis">数据分析</a></li>
                <li class="layui-nav-item"><a href="/collect_logs">采集日志</a></li>
            </ul>
        </div>
    </div>
    <div class="layui-body" style="padding: 20px;">
        {% with messages = get_flashed_messages() %}
          {% if messages %}
            <div class="layui-bg-red" style="padding:10px;">
              {% for message in messages %}
                <p>{{ message }}</p>
              {% endfor %}
            </div>
          {% endif %}
        {% endwith %}
        {% block content %}{% endblock %}
    </div>
</div>
</body>
</html>